package com.mall.b2c.service;

import java.util.List;

import com.mall.b2c.bean.ReceiverBean;
import com.mall.b2c.domain.member.ReceiverDomain;
import com.mall.common.service.BaseService;

/**
 * Service接口 - 收货地址
 */
public interface ReceiverService extends BaseService<ReceiverDomain, Long> {
	
	/**
	 * 获取收货地址列表
	 * @param memberId
	 * @return
	 */
	public List<ReceiverBean> getRecerverList(Long memberId);
	
	/**
	 * 保存收货地址
	 * @param receiver
	 * @return 
	 */
	public ReceiverBean saveReceiver(ReceiverBean receiver, Long memberId);
	
	/**
	 * 更新收货地址
	 * @param receiver
	 */
	public void updateReceiver(ReceiverBean receiver, Long memberId);
	
	/**
	 * 获取收货地址
	 * @param receiverId 收货地址id
	 * @param memberId 会员id
	 * @return
	 */
	public ReceiverDomain getReceiver(Long receiverId, Long memberId);
	
	/**
	 * 删除收货地址
	 * @param receiverId 收货地址id
	 * @param memberId 会员id
	 */
	public void deleteReceiver(Long receiverId, Long memberId);
	
	/**
	 * 设置默认收货地址
	 * @param memberId
	 * @param receiverId
	 * @return
	 */
	public Boolean setDefault(Long memberId, Long receiverId);

}
